package com.yeyaomai.dksns.flowis.domain;

import java.util.List;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * 搜索引擎实体类
 * 
 * @author sun_shan
 * 
 */
@Document(collection = "flowis_engine")
public class Engine extends Entity {

	/**
	 * 
	 */
	private static final long serialVersionUID = -1442334707179819918L;

	@Id
	private Integer id;
	private String engineName; // 引擎名称
	private long keyWordNumber; // 关键字个数
	private long searchTime; // 搜索次数
	private long uniqueVistor; // 独立访客
	private long ip; // IP数量
	private String create_time; // 创建时间
	private List<EngineKeyword> engineKeyword;

	public Engine() {

	}

	public Engine(Integer id, String engineName, long keyWordNumber,
			long searchTime, long uniqueVistor, long ip, String create_time,
			List<EngineKeyword> engineKeyword) {
		this.id = id;
		this.engineName = engineName;
		this.keyWordNumber = keyWordNumber;
		this.searchTime = searchTime;
		this.uniqueVistor = uniqueVistor;
		this.ip = ip;
		this.create_time = create_time;
		this.engineKeyword = engineKeyword;

	}
	
	

	@Override
	public String toString() {
		return "Engine [id=" + id + ", engineName=" + engineName
				+ ", keyWordNumber=" + keyWordNumber + ", searchTime="
				+ searchTime + ", uniqueVistor=" + uniqueVistor + ", ip=" + ip
				+ ", create_time=" + create_time + ", engineKeyword="
				+ engineKeyword + "]";
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getEngineName() {
		return engineName;
	}

	public void setEngineName(String engineName) {
		this.engineName = engineName;
	}

	public long getKeyWordNumber() {
		return keyWordNumber;
	}

	public void setKeyWordNumber(long keyWordNumber) {
		this.keyWordNumber = keyWordNumber;
	}

	public long getSearchTime() {
		return searchTime;
	}

	public void setSearchTime(long searchTime) {
		this.searchTime = searchTime;
	}

	public long getUniqueVistor() {
		return uniqueVistor;
	}

	public void setUniqueVistor(long uniqueVistor) {
		this.uniqueVistor = uniqueVistor;
	}

	public long getIp() {
		return ip;
	}

	public void setIp(long ip) {
		this.ip = ip;
	}

	public List<EngineKeyword> getEngineKeyword() {
		return engineKeyword;
	}

	public void setEngineKeyword(List<EngineKeyword> engineKeyword) {
		this.engineKeyword = engineKeyword;
	}

	public String getCreate_time() {
		return create_time;
	}

	public void setCreate_time(String create_time) {
		this.create_time = create_time;
	}



}
